package com.team.databoard.model.request;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.team.databoard.common.DateTimeDeserializers;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

@Data
public class StudentRequest implements Serializable {
    /**
     * 学号
     */
    private Integer id;

    /**
     * 姓名
     */
    private String name;

    /**
     * 性别
     */
    private Integer sex;

    /**
     * 省份
     */
    private Integer province;

    /**
     * 生日
     */
    @JsonDeserialize(using = DateTimeDeserializers.class)
    private Date birthday;

    /**
     * 身高
     */
    private Integer height;

    /**
     * 学历
     */
    private Integer education;

    @Serial
    private static final long serialVersionUID = 2L;
}
